<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SEOCMS信息管理系统</title>
<link href="__PUBLIC__/style/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/js/js.js"></script>
<script type="text/javascript" src="__PUBLIC__/kindeditor/kindeditor.js"></script>
<script type="text/javascript" src="__PUBLIC__/kindeditor/lang/zh_CN.js"></script>
<link href="__PUBLIC__/kindeditor/themes/default/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/xheditor/xheditor-1.1.14-zh-cn.min.js"></script>
		<script type="text/javascript">
			KindEditor.ready(function(K) {
				 editor = K.create('#editor_id');
				var editor = K.editor({
					allowFileManager : true
				});
				K('#image').click(function() {
					editor.loadPlugin('image', function() {
						editor.plugin.imageDialog({
							imageUrl : K('#url').val(),
							clickFn : function(url, title, width, height, border, align) {
								K('#url').val(url);
								editor.hideDialog();
							}
						});
					});
				});
			});
		</script>
</head>

<body id="page">
<h2 class="tag">当前位置:信息管理 &gt; 编辑信息</h2>
<div class="box">
<div class="page_menu"><a href="__URL__">信息列表</a> <a href="__URL__/add">添加信息</a> </div>
<div class="infobox">
  <form name="add" method="post" action="__URL__/edit" onSubmit="return checkadd()">
    <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1"  class="table_b">
      <tr>
        <td width="120" align="center" class="td">信息标题：<font color="#FF0000">*</font></td>
        <td class="td"><input name="title" type="text" value="{$info['title']}" class="title" id="title" size="50"></td>
      </tr>
      <tr>
        <td align="center" class="td">选择分类：</td>
        <td class="td">
        <select name="cid">
        	{loop $category $key $val}
            <option value="{$val['cid']}" {if $val['cid']==$info['cid']}selected="selected"{/if}>{$val['cname']}</option>
            {/loop}
          </select>
           <span style="padding-left:20px;">
           <input name="ontop" type="checkbox" value="1" {if $info['ontop']==1} checked="checked"{/if}/><label for="h0">推荐</label>&nbsp;&nbsp;
           <input name="status" type="checkbox" value="1" {if $info['status']==1} checked="checked"{/if}/><label for="h0">验证</label>
           </span>
          </td>
      </tr>
      <tr>
        <td align="center" class="td">标签索引：</td>
        <td  class="td"><input name="tags" type="text" value="{$info['tags']}" class="input" size="50" maxlength="250">
          <span class="sm">支持空格、逗号分割</span></td>
      </tr>
        <tr>
          <td align="center" class="td">信息描述：</td>
          <td class="td"><textarea name="dec" style="width:500px;height:100px;">{$info['dec']}</textarea></td>
        </tr>
      <tr class="td" id="flag2">
        <td align="center" class="td">信息内容：<font color="#FF0000">*</font></td>
        <td class="td"><textarea id="editor_id" name="content" style="width:100%;height:300px;">{$info['content']}</textarea></td>
      </tr>
        <tr>
                  <td align="center" class="td">缩略图：</td>
                  <td class="td"><input name="pic" type="text" id="url"  readonly="readonly" class="txt" value="{$info['pic']}"/>
            <input type="button" id="image" value="选择图片"  class="button"/></td>
                </tr>
      <tr>
        <td width="100" class="td">&nbsp;</td>
        <td class="td"><input name="id" type="hidden" value="{$info['id']}" />
          <input name="do" type="hidden" value="yes" />
          <input type="submit"  name="update" class="button" value="更新信息">
          <input type="button" onClick="history.go(-1)" class="button" value="放弃返回"></td>
      </tr>
    </table>
  </form>
</div>
</div>
</body>
</html>